import http from '@/utils/http'

const BASE_URL = '/common'

/** @desc 查询字典列表 */
export function listDictData() {
  return http.get<Record<string, any[]>>(`${BASE_URL}/dict`)
}

/** @desc 提交错误 */
export function submitError(req: any) {
  return http.post('/common/error/submit', req)
}
